namespace ECatalog.Models.UserModel
{
    public interface IUserRepository
    {
        User Save(User user);
        User GetUserByLogin(string login);
        bool ExistUserByLogin(string login);
        User[] GetAllUsers();
        User GetUserById(int id);
        void RemoveUserById(int id);
        bool IsAdmin(string name);
    }
}